package com.sy.entity;

import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class User {
    private Integer id;

    private String name;

    private String trueNAME;

    private String pwd;

    private Integer type;
//    根据type确认user登录身份


    public User() {
    }

    public String getTrueNAME() {
        return trueNAME;
    }

    public void setTrueNAME(String trueNAME) {
        this.trueNAME = trueNAME;
    }

    public User(Integer id, String name, String trueNAME, String pwd, Integer type) {
        this.id = id;
        this.name = name;
        this.trueNAME = trueNAME;
        this.pwd = pwd;
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", trueNAME='" + trueNAME + '\'' +
                ", pwd='" + pwd + '\'' +
                ", type=" + type +
                '}';
    }
}